<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>A Pen by  finley</title>
</head>

<body>
  <html ng-app="app">
  <head></head>
  <body>
     <div ng-controller="DemoCtrl as vm">
        <br>
        <label for="">titleImage</label>
        <image-preview preview-width="vm.width" preview-height="vm.height" new-image="vm.formData.titleImage"
        on-change="vm.change()"></image-preview>

        <label for="">Option 1</label>
        <image-preview preview-width="vm.width" preview-height="vm.height" new-image="vm.formData.options[0].image"></image-preview>

              <pre>
                {{vm.formData|json}}
              </pre>
    </div>

  <script src='//cdn.bootcss.com/jquery/2.2.4/jquery.min.js'></script>
  <script src='http://cdn.bootcss.com/angular.js/1.5.8/angular.min.js'></script>
  <script src="js/index.js"></script>
</body>
</html>
